home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Topik / Topik - Disk 16 - KnowAboutIt (19xx)(Topik Public Domain)(PD)[WB].zip / Topik - Disk 16 - KnowAboutIt (19xx)(Topik Public Domain)(PD)[WB].adf / MicroRayDbw / Makefile < prev    next >
Makefile  |  1988-12-11  |  5KB  |  158 lines

  1. #/************************************************************************
  2. # *                                    *
  3. # *            Copyright (c) 1988, David B. Wecker            *
  4. # *                All Rights Reserved                *
  5. # *                                    *
  6. # * This file is part of DBW_uRAY                    *
  7. # *                                    *
  8. # * DBW_uRAY is distributed in the hope that it will be useful, but    *
  9. # * WITHOUT ANY WARRANTY. No author or distributor accepts        *
  10. # * responsibility to anyone for the consequences of using it or for    *
  11. # * whether it serves any particular purpose or works at all, unless    *
  12. # * he says so in writing. Refer to the DBW_uRAY General Public        *
  13. # * License for full details.                        *
  14. # *                                    *
  15. # * Everyone is granted permission to copy, modify and redistribute    *
  16. # * DBW_uRAY, but only under the conditions described in the        *
  17. # * DBW_uRAY General Public License. A copy of this license is        *
  18. # * supposed to have been given to you along with DBW_uRAY so you    *
  19. # * can know your rights and responsibilities. It should be in a file    *
  20. # * named COPYING. Among other things, the copyright notice and this    *
  21. # * notice must be preserved on all copies.                *
  22. # ************************************************************************
  23. # *                                    *
  24. # * Authors:                                *
  25. # *    DBW - David B. Wecker                        *
  26. # *                                    *
  27. # * Versions:                                *
  28. # *    V1.0 881023 DBW    - First released version            *
  29. # *    V1.1 881110 DBW - Fixed scan coherence code            *
  30. # *    V1.2 881125 DBW - Removed ALL scan coherence code (useless)    *
  31. # *              added "fat" extent boxes            *
  32. # *                                    *
  33. # ************************************************************************/
  34.  
  35.  
  36.  
  37. ############################################################################
  38. # Amiga floating point defs (uncomment one set of FFLG,DBL,MLIB,TARGET)
  39. ############################################################################
  40.  
  41. # Amiga 68000 single precision:
  42. #FFLG    = +ff
  43. #DBL    = 0
  44. #MLIB    = -lm32
  45. #TARGET    = uray_s
  46.  
  47. # Amiga 68000 double precision:
  48.  
  49. #FFLG    = +fi
  50. #DBL    = 1
  51. #MLIB    = -lma32
  52. #TARGET    = uray_d
  53.  
  54. # Amiga 68000 68881:
  55.  
  56. #FFLG    = +f8
  57. #DBL    = 1
  58. #MLIB    = -lm832
  59. #TARGET    = uray_c
  60.  
  61. # Amiga 68020 single precision:
  62.  
  63. #FFLG    = +2 +ff
  64. #DBL    = 0
  65. #MLIB    = -lm32
  66. #TARGET    = uray_2s
  67.  
  68. # Amiga 68020 double precision:
  69.  
  70. #FFLG    = +2 +fi
  71. #DBL    = 1
  72. #MLIB    = -lma32
  73. #TARGET    = uray_2d
  74.  
  75. # Amiga 68020 68881:
  76.  
  77. FFLG    = +2 +f8
  78. DBL    = 1
  79. MLIB    = -lm832
  80. TARGET    = uray_2c
  81.  
  82.  
  83. ############################################################################
  84. # Uncomment either the Amiga or Vax/Ultrix or Vax/VMS  definitions:
  85. ############################################################################
  86.  
  87.  
  88.  
  89. #############################################################################
  90. # Amiga:
  91. #############################################################################
  92.  
  93. CC    = cc
  94. LN    = ln
  95. BFLAGS    = -E200 +L -n $(FFLG) -DDODOUBLE=$(DBL) -DAMIGA
  96. IFLAGS    = +Iuray.pre
  97. HFLAGS    = +Huray.pre
  98. LFLAGS    = -g
  99. CLIB    = -lc32
  100. OBJS    = uray.o trace.o intersect.o texture.o support.o extent.o rkm.o \
  101.       output.o random.o
  102. CFLAGS    = $(BFLAGS) $(IFLAGS)
  103. SRCS    = uray.c trace.c intersect.c texture.c support.c extent.c rkm.c \
  104.       output.c random.c
  105.  
  106. all : uray display
  107.  
  108. uray : $(OBJS)
  109.     $(LN) $(LFLAGS) -o $(TARGET) $(OBJS) $(MLIB) $(CLIB)
  110.  
  111. uray.o : uray.c
  112.     $(CC) $(BFLAGS) $(HFLAGS) $*.c
  113.  
  114. display : display.c
  115.     $(CC) $(BFLAGS) -o $*.o $*.c
  116.     $(LN) $(LFLAGS) -o $@ $*.o $(MLIB) $(CLIB)
  117.  
  118. ############################################################################
  119. # Vax/Ultrix:
  120. ############################################################################
  121.  
  122. #CC    = cc
  123. #LN    = cc
  124. #CFLAGS    = -g -DDODOUBLE=1 -DU__X
  125. #LFLAGS    = -g
  126. #MLIB    = -lm
  127. #OBJS    = uray.o trace.o intersect.o texture.o support.o extent.o rkm.o \
  128. #      output.o random.o
  129. #SRCS    = uray.c trace.c intersect.c texture.c support.c extent.c rkm.c \
  130. #      output.c random.c
  131. #
  132. #uray : $(OBJS)
  133. #    $(LN) $(LFLAGS) -o $@ $(OBJS) $(MLIB)
  134. #
  135. #kit :
  136. #    csh -fe Make.version COPYING uray.h $(SRCS) display.c,uray.dat
  137. #    tar cvf uray.tar README COPYING Makefile Make.version uray.h $(SRCS) \
  138. #        display.c,display uray.dat uray.??
  139. #    compress uray.tar
  140. #    arc a uray  README COPYING Makefile Make.version uray.h $(SRCS) \
  141. #        display.c,display uray.dat uray.??
  142. #
  143.  
  144. #############################################################################
  145. # Vax/VMS:
  146. #############################################################################
  147.  
  148. #CC    = cc
  149. #LN    = link
  150. #CFLAGS    = /debug/define=(DDODOUBLE=1,VMS)
  151. #LFLAGS    =
  152. #CLIB    = ,SYS$LIBRARY:VAXCRTL/LIB
  153. #OBJS    = uray.obj,trace.obj,intersect.obj,texture.obj,support.obj,-
  154. #      extent.obj,rkm.obj,output.obj,random.obj
  155. #uray.exe : $(OBJS)
  156. #    $(LN)$(LFLAGS)/exe=$@ $(OBJS)$(CLIB)
  157.  
  158.